#include <iostream>
using namespace std;

#include "forwardList.h"

int main()
{
	forwardList<int> l;
	l.push_front(10);
	l.push_front(20);
	l.push_front(30);
	auto it(l.begin());	 //30
	auto it2(l.begin());
	it2++;
	it2++;				//10
	cout << l.front() << endl;	//30
	l.swap_elements(it, it2);
	cout << l.front() << endl;	//10
	cout << it->getData() << endl;	//30
	cout << it2->getData() << endl;	//10
	system("pause");
	return 0;
}